﻿<%@ Page Language="C#" MasterPageFile="MyStudy.master" AutoEventWireup="true" CodeFile="MyMsg.aspx.cs"
    Inherits="Theme_3_MyMsg" Title="PowerCreator Learning Management System" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="new_01">
        <div class="new_01">
            
            <div class="education">
                <div class="nr_top_01">
                
                 <br />
                        &nbsp;&nbsp;&nbsp;&nbsp;<strong>未读<asp:Label ID="lbl_NoRead" runat="server"></asp:Label></strong>
                        <hr />
                    <%--<div class="list">
                        <ul>
                            <li>&nbsp;未读<asp:Label ID="lbl_NoRead" runat="server"></asp:Label></li>
                        </ul>
                    </div>--%>
                    
                    <asp:Repeater ID="rpt_NoReadedNew" runat="server" OnItemCommand="rptNew_ItemCommand" OnItemDataBound="rpt_ItemDataBound">
                        <HeaderTemplate>
                            <%--<table width="696" border="0" cellspacing="5" cellpadding="0">--%>
                                <%-- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                    <tr>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c1", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--新闻标题-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c2", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--发布时间-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c3", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--查看次数-->
                            </th>
                    </tr>--%>
                    <ul>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <%--<tr>
                                <td>--%>
                                <li>
                                    <a href='OpenMsg.aspx?TP=2&type=2&MsgID=<%# Eval("UserMsg_Id")%>' target="_blank" title='<%#Eval("Title")%>'>
                                        <%#Eval("Title")%>
                                        &nbsp;</a>【<%#Eval("Name")%>】【<%#Eval("CreateDate")%>】<asp:LinkButton ID="lnkbtn_del" runat="server" CommandName="ldel" CommandArgument='<%#Eval("UserMsg_Id")%>'>删除</asp:LinkButton>
                               <%-- </td>
                            </tr>--%>
                            </li>
                        </ItemTemplate>
                        <FooterTemplate>
                            <%--</table>--%>
                            <ul>
                        </FooterTemplate>
                    </asp:Repeater>
                    
                    
                    <div  class="nr_top_01" runat="server" id="td_MyNoReadedNew">
                   
                 <br />
                        &nbsp;&nbsp;&nbsp;&nbsp;<strong>已读<asp:Label ID="lbl_Read" runat="server"></asp:Label></strong>
                        <hr />
                    <%--<div class="list">
                        <ul>
                            <li>&nbsp;已读<asp:Label ID="lbl_Read" runat="server"></asp:Label></li>
                        </ul>
                    </div>--%>
                    <asp:Repeater ID="rpt_ReadedNew" runat="server" OnItemCommand="rptNew2_ItemCommand" OnItemDataBound="rpt2_ItemDataBound">
                        <HeaderTemplate>
                        <ul>
                           <%-- <table border="0" cellspacing="0" cellpadding="0" width="97%" align="center">--%>
                                <%-- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                    <tr>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c1", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--新闻标题-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c2", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--发布时间-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c3", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--查看次数-->
                            </th>
                    </tr>--%>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <%-- <tr>
                                <td>--%>
                                <li>
                                    <a href='OpenMsg.aspx?TP=2&type=2&MsgID=<%# Eval("UserMsg_Id")%>' target="_blank" title='<%#Eval("Title")%>'>
                                        <%#Eval("Title")%>
                                        &nbsp;</a>【<%#Eval("Name")%>】【<%#Eval("CreateDate")%>】<asp:LinkButton ID="lnkbtn_del" runat="server" CommandName="ldel" CommandArgument='<%#Eval("UserMsg_Id")%>'>删除</asp:LinkButton>
                                        </li>
                                <%--</td>
                            </tr>--%>
                        </ItemTemplate>
                        <FooterTemplate>
                             <%--</table>--%></ul>
                        </FooterTemplate>
                    </asp:Repeater>
                    </div>
                    <div  runat="server" class="nr_top_01" id="td_MyCreateNew">
                     <br />
                        &nbsp;&nbsp;&nbsp;&nbsp;<strong>已发消息<asp:Label ID="lbl_MyCreate" runat="server"></asp:Label></strong>
                        <hr />
                    
                    <%--<div class="list">
                        <ul>
                            <li>&nbsp;已发消息<asp:Label ID="lbl_MyCreate" runat="server"></asp:Label></li>
                        </ul>
                    </div>--%>
                    <asp:Repeater ID="rpt_MyCreateNew" runat="server" OnItemCommand="rptNew3_ItemCommand" OnItemDataBound="rpt3_ItemDataBound">
                        <HeaderTemplate>
                        <ul>
                            <%--<table border="0" cellspacing="0" cellpadding="0" width="97%" align="center">--%>
                                <%-- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                    <tr>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c1", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--新闻标题-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c2", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--发布时间-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c3", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--查看次数-->
                            </th>
                    </tr>--%>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <%--<tr>
                                <td>--%>
                                <li>
                                    <a href='OpenMsg.aspx?TP=2&type=1&MsgID=<%# Eval("UserMsg_Id")%>' target="_blank" title='<%#Eval("Title")%>'>
                                        <%#Eval("Title")%>
                                        &nbsp;</a>【<%#Eval("Name")%>】【<%#Eval("CreateDate")%>】<asp:LinkButton ID="lnkbtn_del" runat="server" CommandName="ldel" CommandArgument='<%#Eval("UserMsg_Id")%>'>删除</asp:LinkButton>
                                        </li>
                                <%--</td>--%>
                                <%--                    <td>
                        <%#Eval("NewPublishTime")%>
                        &nbsp;
                    </td>
                    <td>
                        <%#Eval("NewClickNum")%>
                        &nbsp;
                    </td>--%>
                           <%-- </tr>--%>
                        </ItemTemplate>
                        <FooterTemplate>
                            <%--</table>--%></ul>
                        </FooterTemplate>
                    </asp:Repeater>
                    </div>
                    
                    <div  runat="server" class="nr_top_01" id="Div1">
                     <br />
                        &nbsp;&nbsp;&nbsp;&nbsp;<strong>写消息<asp:Label ID="Label3" runat="server"></asp:Label></strong>
                        <hr />
                    
                    <%--<div class="list">
                        <ul>
                            <li>&nbsp;已发消息<asp:Label ID="lbl_MyCreate" runat="server"></asp:Label></li>
                        </ul>
                    </div>--%>
                    <%--<div class="nr_top_01">
                        <ul>
                            <li>&nbsp;写消息<asp:Label ID="Label3" runat="server"></asp:Label></li>
                        </ul>
                    </div>--%>
                    
                        <table width="92%" border="0" cellspacing="5" cellpadding="0">
                            <tr>
                                <td width="72">
                                    <div align="right">
                                        收件人：</div>
                                </td>
                                <td colspan="6">
                                    <asp:RadioButton ID="rbtn_teacher" runat="server" GroupName="usertype" Text="教师"
                                        AutoPostBack="True" OnCheckedChanged="rdbtn_teacher_CheckedChanged" /><asp:RadioButton
                                            ID="rbtn_student" runat="server" GroupName="usertype" Text="学生" AutoPostBack="True"
                                            OnCheckedChanged="rdbtn_student_CheckedChanged" />
                                </td>
                            </tr>
                            <tr runat="server" id="tr_student" visible="false">
                                <td width="72">
                                </td>
                                <td colspan="6">
                                    <asp:DropDownList ID="ddl_Class" runat="server" OnSelectedIndexChanged="on_ddlClass_change"
                                        AutoPostBack="true">
                                    </asp:DropDownList>
                                    <asp:DropDownList ID="ddl_Student" runat="server">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr runat="server" id="tr_teacher" visible="false">
                                <td width="72">
                                </td>
                                <td colspan="6">
                                    <asp:DropDownList ID="ddl_teacher" runat="server">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div align="right">
                                        标题：</div>
                                </td>
                                <td colspan="6">
                                    <label>
                                        <asp:TextBox ID="txt_Title" runat="server" Width="360px" BorderWidth="1"></asp:TextBox>
                                    </label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div align="right">
                                        内容：</div>
                                </td>
                                <td colspan="6">
                                    <label>
                                        <asp:TextBox ID="txt_Content" runat="server" Width="360px" BorderWidth="1" TextMode="MultiLine"
                                            Rows="6"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div align="right">
                                    </div>
                                </td>
                                <td colspan="6">
                                    <asp:Label ID="lbl_msg_Error" runat="server" Text="" ForeColor="red"></asp:Label>
                                    </td>
                               
                            </tr>
                            <tr>
                                <td>
                                    <div align="right">
                                    </div>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    <div align="center">
                                        <asp:Button ID="btnSave" runat="server" Text="发送" CssClass="inputBotton2" OnClick="btnSave_Click" />
                                </td>
                            </tr>
                            
                        </table>
                    
                </div>
            </div>
        </div>
</asp:Content>
